package framework.proxy
{
import flash.errors.IllegalOperationError;
import flash.utils.Dictionary;

public class ComponentProxyRegister
{
    private static var MAP:Dictionary = new Dictionary(true);
    
    public static function register(key:String, proxyRef:Class):void
    {
        if (!(proxyRef is IComponentProxy)) 
        {
            throw new IllegalOperationError(proxyRef.toString() +  " is not IComponentProxy. Can't be registered.");
            return;
        }
        MAP[key] = proxyRef;
    }
}
}